<form id="pagerForm" action="__URL__/applyList" method="post">
    <include file="Public/pagerForm" />
    <input type="hidden" name="pid" value="{$parameter['pid']}"/>
</form>
<style>tr td,th{text-align:center}.typestyle{padding: 2px 6px;font-size: 13px;color: #fff;border-radius: 4px;}</style>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" action="__URL__/applyList/" method="post">
    	<input type="hidden" name="pid" value="{$parameter['pid']}"/>
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label>姓名：</label>
                    <input type="text" name="username" value="{$search['username']}" style="width:110px">
                </li>
                <li>
                    <label>状态：</label>
                    <select name="status">
                        <option value="0">请选择</option>
                        <option value="2" <if condition="$search['status'] eq 2">selected="selected"</if>>已读</option>
                        <option value="1" <if condition="$search['status'] eq 1">selected="selected"</if>>未读</option>
                    </select>
                </li>
                <li>选择时间：<input type="text" name="checktime" style="width:110px" value="{$search['checktime']}" class="date"  dateFmt="yyyy-MM-dd" minDate="{%y-1}-%M-%d" /></li>
            </ul>
            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
                </ul>
            </div>
        </div>
    </form>
</div>

<div class="pageContent">
    <div class="panelBar" style="background:none;">
        <ul class="toolBar">
            <li>
                <a href="__URL__/check/id/{sid_user}" class="edit" target="selectedTodo" rel="id" posttype="string" title="设为已读">
                    <i class="iconfont">&#xe625;</i>
                    <span>设为已读</span>
                </a>
            </li>

            <li>
                <a class="delete" href="{:U('ApplyUsers/remove',array('model'=>$parameter['model']))}" target="selectedTodo" rel="id" posttype="string" title="你确定要批量删除吗？">
                    <i class="iconfont">&#xe611;</i>
                    <span>删除</span>
                </a>
            </li>

        </ul>
    </div>
    <table class="table" width="100%" layoutH="206">
        <thead>
            <tr>
                <th width="3%" class="txtMid">
                    <input type="checkbox" group="id" class="checkboxCtrl">
                </th>
                <th width="5%">编号</th>
                <th width="20%">用户姓名</th>
                <th width="10%">性别</th>
                <th width="20%">电话</th>
                <th width="15%">所在地区</th>
	            <th width="10%">申请时间</th>
	            <th width="10%">是否已读</th>
            </tr>
        </thead>
        <tbody>
        <if condition="$dataList|count gt 0">
        <volist name="dataList" id="volist">
            <tr target="sid_user" rel="{$volist['id']}" >
                <td class="txtMid">
					<if condition="$volist['status'] eq 0">
						<input name="id" value="{$volist['id']}" type="checkbox">
					</if>
                </td>
                <td>{:( $page['pageNum'] - 1 ) * $page['numperpage'] + ( $key + 1 )}</td>
                <td>{$volist['username']}</td>
                <td>
                	<if condition="$volist['sex'] eq '男'">
                    	<span class="typestyle" style="line-height:60px;background-color:#63B8FF;">男</span>
                    <else />
                    	<span class="typestyle" style="line-height:60px;background-color:#FF6EB4;">女</span>
                    </if>
                </td>
                <td>{$volist['tel']}</td>
				 <td>{$volist['city']}</td>
                <td>{$volist['addtime']}</td>
                <td>
                    <if condition="$volist['status'] eq 0">
                    	<span class="typestyle" style="line-height:60px;background-color:#EE3B3B;">未读</span>
                    <else />
                    	<span class="typestyle" style="line-height:60px;background-color:#90EE90;">已读</span>
                    </if>
                </td>
            </tr>
        </volist>
        <else />
            <tr><td colspan="10" style="text-align:center;">没有数据!!!</td></tr>
        </if>
        </tbody>
    </table>
    <include file="Public/pagination" />
</div>